//
//  UIConstant.h
//  GaoXunTravel
//
//  Created by 杜梅 on 16/5/31.
//  Copyright © 2016年 May. All rights reserved.
//

#ifndef UIConstant_h
#define UIConstant_h

//手机屏幕尺寸
#define is_iPHONE4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640,960), [[UIScreen mainScreen] currentMode].size) : NO)

#define is_iPHONE5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640,1136), [[UIScreen mainScreen] currentMode].size) : NO)

#define is_iPHONE6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? (CGSizeEqualToSize(CGSizeMake(750, 1334),[[UIScreen mainScreen] currentMode].size)) : NO)

#define is_iPHONE6P ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? (CGSizeEqualToSize(CGSizeMake(1125, 2001), [[UIScreen mainScreen] currentMode].size) || CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size)) : NO)

#define DeviceName [[UIDevice currentDevice] name]
#define HKVersion [[[UIDevice currentDevice] systemVersion] doubleValue]

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
#define SCREEN_BOUNDS [UIScreen mainScreen].bounds

#define kAutoWidth 375.0 * SCREEN_WIDTH
#define kAutoHight 667.0 * SCREEN_HEIGHT

//获取window
#define kWindow         [UIApplication sharedApplication].keyWindow

//宏定义导航栏和状态栏的高度
#define kTabbarHeight 49
#define kNavigationBarHeight 64

#define NAVIGATION_HEIGHT    44
#define TOP_BAR_HEIGHT       20
#define TOP_BAR_NAVIGATION_HEIGHT 64
#define APP_STATUSBAR_HEIGHT  [UIApplication sharedApplication].statusBarFrame.size.height
//宏定义宽高比例
#define autoSizeScaleX  [UIScreen mainScreen].bounds.size.width/375
#define autoSizeScaleY  [UIScreen mainScreen].bounds.size.height/667

//键盘的参数
#define myFamilyHeaderHeight 80
#define makeBookButtonHeight 60

//颜色定义
#define RGB(r,g,b,a)   [UIColor colorWithRed:((float)(r))/255.0 green:((float)(g))/255.0 blue:((float)(b))/255.0 alpha:(float)(a)]

#define tabbarItemColor RGB(248,132,48,1.0) //#F88430

#define titleColor RGB(80,90,108,1.0) //#505a6c

#define backgroungColor RGB(252,252,252,1.0) //#Fcfcfc

#define titleViewColor RGB(51,51,51,1.0) // #333333

#define cellColor RGB(238,239,240,1.0) //cell分割线颜色  #eeeff0

#define nameColor RGB(255,255,255,1.0)//用户名字体颜色 ＃ffffff

#define identityColor RGB(242,242,242,1.0)//身份描述颜色 #f2f2f2

#define placeHolderColor RGB(135,135,135,1.0)//placeholder颜色 #878787

#endif /* UIConstant_h */
